﻿Imports DAO
Imports DTO
Public Class CTDICHVUBUS
    Private dao As New CTDICHVUDAO()

    Public Function load_CTDICHVU() As DataTable
        Return dao.loadctdv()
    End Function
    Public Function them_CTDICHVU(ByVal dto As CTDICHVUDTO) As Boolean
        If dao.them_CTDICHVU(dto) = True Then
            Return True
        Else
            Return False
        End If
    End Function

    Public Function capnhat_CTDICHVU(ByVal dto As CTDICHVUDTO) As Boolean
        If dao.capnhat_ctdichvu(dto) = True Then
            Return True
        Else
            Return False
        End If
    End Function

    Public Function xoa_CTDICHVU(ByVal dto As CTDICHVUDTO) As Boolean
        If dao.xoa_CTDICHVU(dto) = True Then
            Return True
        Else
            Return False
        End If
    End Function
End Class
